/**

This file is part of MaCI/GIMnet.

MaCI/GIMnet is free software: you can redistribute it and/or modify it 
under the terms of the GNU Lesser General Public License as published 
by the Free Software Foundation, either version 3 of the License, or 
(at your option) any later version.

MaCI/GIMnet is distributed in the hope that it will be useful, but WITHOUT 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public 
License for more details.

You should have received a copy of the GNU Lesser General Public 
License along with GIMnet. (See COPYING.LESSER) If not, see 
<http://www.gnu.org/licenses/>.

**/
/*
* Implements the 3D angle Class. 
*
*  \class	TAngle3D
*  \author 	Jari Saarinen
*  \date 	Tue Aug 01 14:37:54 2006

*  \version: 	0.1  
*/

#include "TAngle3D.h"




TAngle3D::TAngle3D()
{
	this->xr = 0;
	this->yr = 0;
	this->zr = 0;
	
}

/**
* Constructor with input values
*/
TAngle3D::TAngle3D(float x_rot, float y_rot,float z_rot ){
	this->xr = x_rot;
	this->yr = y_rot;
	this->zr = z_rot;
}

TAngle3D::~TAngle3D(){}


TAngle TAngle3D::getXr(){
	return this->xr;
}

TAngle TAngle3D::getYr(){
	return this->yr;
}

TAngle TAngle3D::getXr(){
	return this->yr;
}

void TAngle3D::setXr(TAngle x){
	this->xr = x;
}

void TAngle3D::setYr(TAngle y){
	this->yr = y;
}

void TAngle3D::setZr(TAngle z){
	this->zr = z;
}


void TAngle3D::to2pi(){
	this->xr.to2pi();
	this->yr.to2pi();
	this->zr.to2pi();	
}